#region Using directives
using System;
using System.Data;
using WP.Commons;
#endregion

namespace WP.MF.DataEntity
{

	/*
	 * Created by Web Smart Create Code Tool
	 * At 4/22/2005
	 */

	//=========MSalesTax  ============================
	[System.ComponentModel.DesignerCategory("Code")]
    public class MSalesTaxDEL : DataSet, IDataEntity
	{
		//=========mSalesTax ============================
		public const string TABLENAME_MSALESTAX="mSalesTax";
		public const string RECID="RecID";
		public const string TAXCODE="TaxCode";
		public const string DESCRIPTION="Description";
		public const string TAXPCT="TaxPct";
		public const string PROVNO="ProvNo";
		public const string PROVTAXPCT="ProvTaxPct";
		public const string COUNTYNO="CountyNo";
		public const string COUNTYTAXPCT="CountyTaxPct";
		public const string CITYNO="CityNo";
		public const string CITYTAXPCT="CityTaxPct";
		public const string CODEFORTAXLEVEL4="CodeforTaxLevel4";
		public const string PCTFORTAXLEVEL4="PctforTaxLevel4";
		public const string CODEFORTAXLEVEL5="CodeforTaxLevel5";
		public const string PCTFORTAXLEVEL5="PctforTaxLevel5";
		public const string CODEFORTAXLEVEL6="CodeforTaxLevel6";
		public const string PCTFORTAXLEVEL6="PctforTaxLevel6";
		public const string REVERSIONNO="ReversionNo";
		public const string STARTDATE="StartDate";
		public const string ENDDATE="EndDate";
		public const string TAXONFRT="TaxOnFrt";
        public const string PAYABLEUSEPST = "PayableUsePST";
        public const string TAXSHORTDESC = "TaxShortDesc";
        public const string RECSTAMP = "RecStamp";
        private System.Collections.Specialized.NameValueCollection mVarCollection = new System.Collections.Specialized.NameValueCollection();
        public System.Collections.Specialized.NameValueCollection VarCollection
        {
            get { return mVarCollection; }
            set { mVarCollection = value; }
        }

		public MSalesTaxDEL()
		{
			//Create mSalesTax structure
			CreatemSalesTaxStructure();

		}

		//=========mSalesTax============================
		private void CreatemSalesTaxStructure()
		{
			DataTable table;
			DataColumnCollection DCC;
			DataColumn DC=new DataColumn();
			table=new DataTable (TABLENAME_MSALESTAX);
			DCC=table.Columns;

			DC=new DataColumn(RECID,typeof(System.Int32));
			DCC.Add(DC);

			DC=new DataColumn(TAXCODE,typeof(System.String));
			DCC.Add(DC);

			DC=new DataColumn(DESCRIPTION,typeof(System.String));
			DCC.Add(DC);

			DC=new DataColumn(TAXPCT,typeof(System.Double));
			DC.DefaultValue="0";
			DCC.Add(DC);

			DC=new DataColumn(PROVNO,typeof(System.String));
			DCC.Add(DC);

			DC=new DataColumn(PROVTAXPCT,typeof(System.Double));
			DC.DefaultValue="0";
			DCC.Add(DC);

			DC=new DataColumn(COUNTYNO,typeof(System.String));
			DCC.Add(DC);

			DC=new DataColumn(COUNTYTAXPCT,typeof(System.Double));
			DC.DefaultValue="0";
			DCC.Add(DC);

			DC=new DataColumn(CITYNO,typeof(System.String));
			DCC.Add(DC);

			DC=new DataColumn(CITYTAXPCT,typeof(System.Double));
			DC.DefaultValue="0";
			DCC.Add(DC);

			DC=new DataColumn(CODEFORTAXLEVEL4,typeof(System.String));
			DCC.Add(DC);

			DC=new DataColumn(PCTFORTAXLEVEL4,typeof(System.Double));
			DC.DefaultValue="0";
			DCC.Add(DC);

			DC=new DataColumn(CODEFORTAXLEVEL5,typeof(System.String));
			DCC.Add(DC);

			DC=new DataColumn(PCTFORTAXLEVEL5,typeof(System.Double));
			DC.DefaultValue="0";
			DCC.Add(DC);

			DC=new DataColumn(CODEFORTAXLEVEL6,typeof(System.String));
			DCC.Add(DC);

			DC=new DataColumn(PCTFORTAXLEVEL6,typeof(System.Double));
			DC.DefaultValue="0";
			DCC.Add(DC);

			DC=new DataColumn(REVERSIONNO,typeof(System.Int32));
			DC.DefaultValue="0";
			DCC.Add(DC);

			DC=new DataColumn(STARTDATE,typeof(System.String));
			DCC.Add(DC);

			DC=new DataColumn(ENDDATE,typeof(System.String));
			DCC.Add(DC);

			DC=new DataColumn(TAXONFRT,typeof(System.Boolean));
			DC.DefaultValue="0";
			DCC.Add(DC);

            DC = new DataColumn(PAYABLEUSEPST, typeof(System.Boolean));
			DC.DefaultValue="0";
			DCC.Add(DC);

            DC = new DataColumn(TAXSHORTDESC, typeof(System.String));
            DC.DefaultValue = "";
            DCC.Add(DC);

            DC = new DataColumn(RECSTAMP, typeof(System.Byte[]));
            DCC.Add(DC);

			this.Tables.Add (table);
		}

	}
}